package com.prs.crm.dao.approval.impl;

import org.hibernate.Criteria;
import org.hibernate.Query;

import com.prs.crm.dao.approval.ApproveDao;
import com.prs.crm.dao.impl.BaseDaoImpl;
import com.prs.crm.domain.approval.Approve;

public class ApproveDaoImpl extends BaseDaoImpl<Approve> implements ApproveDao{

	@Override
	public void delAppByapplicationid(Integer id) {

		Query query = this.getSession().createQuery("DELETE FROM Approve WHERE application_id = "+id);
		query.executeUpdate();
		
	}

}
